import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
// import routes from '~pages'

import { setupLayouts } from 'virtual:generated-layouts'
import generatedRoutes from 'virtual:generated-pages'

const routes = setupLayouts(generatedRoutes)

// console.log(routes)

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router;